/*
 * Copyright 2010 Nicolas Martignole.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless
 * required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
 * OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 */

security {
  // see DefaultSecurityConfig.groovy for all settable/overridable properties
  active = true

  // Disable Hibernate cache
  cacheUsers = false


  loginUserDomainClass = "org.letouilleur.celerio.Account"

  requestMapClass = "org.letouilleur.celerio.RequestMap"

  useRequestMapDomainClass = true

  useControllerAnnotations = false

  // If you need to change the field name in Account, then you need to redeclare here
  // a binding for ACEGI.
  // User class username field
  userName = "username"
  // User class password field
  password = "password"
  // User class enabled field
  enabled = "enabled"

  // 'Authority'	Role class name
  authorityDomainClass = "org.letouilleur.celerio.Role"
  // Role class role name field
  authorityField = "authority"
  authorityFieldName = "role.authority"
  relationalAuthoritiesField = "rolesViaAccountRole"
  
  // For email
  useMail = true // if true, enables user registration emails
  mailHost = 'smtp.gmail.com'//	mail server url
  mailUsername = 'nmartignole@gmail.com'    // mail server username (set to null if auth isn't required)
  mailPassword = 'test'//	mail server password (set to null if auth isn't required)
  mailProtocol = 'smtp'    //JavaMail protocol name
  mailFrom = 'nmartignole@gmail.com'//	email 'from' address
  mailPort = 465 //	mail server port
  javaMailProperties = ['starttls.enable':'true','auth':'true','debug':'true','socketFactory.class':'javax.net.ssl.SSLSocketFactory','socketFactory.fallback':'false']    //optional map of custom JavaMail properties


  useOpenId=false
  useFaceBook=false
}
